<div class="categories">
    <ul>
        <?php foreach ($aryCategory as $key => $category) { ?>
            <li>
                <a style="cursor: pointer;" class="<?php if (isset($category_id)) echo ($category_id == $category['category_id']) ? 'active' : ''; ?>" onclick="productController.getListProduct('<?php echo $this->url('product-ajax/product-by-category', 
                array('cat_id' => $category['category_id'],'cat_name' => $category['category_name_filter']));?>')">
                    <?php echo $category['category_name']; ?>
                </a>
            </li>
        <?php } ?>
    </ul>
</div>